from django import forms
from .models import Book


class Addbook(forms.ModelForm):
    class Meta:
        model = Book
        fields = '__all__'
        # exclude = ['page']

        error_messages = {
            "page":{

            }
        }